<template>
    <div class="lianjianren">
        <tableMobile :data11="content" :thList="thList"/>
    </div>
</template>

<script>
import { GSA_Search } from '../../../common/commonApi';
import tableMobile from './tableMobile.vue';
export default {
    data() {
        return {
            content:[],
            thList: [
          {
            title: '姓名',
            isSort: false,// 是否进行排序, // 是否单独显示背景颜色
            sortField: 'XM',// 排序字段
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '与户主关系',
            isSort: false,
            sortField: 'YHZGX',
            backgroundColor:"rgb(242, 245, 247)",
            width:"20"
          },
          {
            title: '身份证',
            isSort: false,
            sortField: 'SFZ',
            backgroundColor:"rgb(242, 245, 247)",
            width:"20"
          },
          {
            title: '性别',
            isSort: false,
            sortField: 'SEXX',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '年龄',
            isSort: false,
            sortField: 'NL',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '户口所在地',
            isSort: false,
            sortField: 'HKSZD',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '是否村集体股东',
            isSort: false,
            sortField: 'IFCJTGD',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '婚姻状况',
            isSort: false,
            sortField: 'HYZK',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '是否有不动产',
            isSort: false,
            sortField: 'IFBDC',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },

          {
            title: '不动产编号',
            isSort: false,
            sortField: 'BDCBH',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '是否机关事业单位',
            isSort: false,
            sortField: 'IFJGSYDW',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '火化时间',
            isSort: false,
            sortField: 'HHSJ',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
          {
            title: '死亡时间',
            isSort: false,
            sortField: 'SWSJ',
            backgroundColor:"rgb(242, 245, 247)",
            width:"10"
          },
        ],
        }
    },
    components:{
        tableMobile
    },
    props:{
        rowData:Object
    },
    methods: {
        //获取联建人信息
        async getLianJianRenData() {
            let data = [
                {
                    "field": "TO_ROW_GUID",
                    "value": this.rowData.ROW_GUID
                }
            ]
            const res = await GSA_Search('3e9eab0a-62d0-4946-8444-ef781a0dc8d0',data)
            this.content = res.Data
        },
        //获取联建人信息
        async getLianJianRenData1() {
            let data = [
                {
                    "field": "TO_ROW_GUID",
                    "value": this.rowData.ROW_GUID
                }
            ]
            const res = await GSA_Search('851cbf77-b4e9-46f0-9e99-b710e3cc5db4',data)
            this.content = res.Data
            if(this.content.length > 0){
                this.getLianJianRenData()
            }
        }
    },
    created() {
        this.getLianJianRenData1()
    },
    mounted() {

    }
}
</script>